//
//  UIImageView+WYVipImageView.m
//  Boss
//
//  Created by admin on 2018/8/15.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "UIImageView+WYVipImageView.h"

@implementation UIImageView (WYVipImageView)
-(void)showVipImageViewStatusWithVipId:(NSString *)vipId
{
    if (vipId.integerValue ==0) {
        self.hidden = YES;
    }
    if (vipId.integerValue ==10) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"list_silver_vip"];
    }
    if (vipId.integerValue ==20) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"list_gold_vip"];
    }
    if (vipId.integerValue ==30) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"list_Diamonds_vip"];
    }
}
-(void)showPersonAuthenticationWithType:(NSString *)type
{
    if (type.integerValue) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"personVVVV"];
    }else{
        self.hidden = YES;
    }
}
-(void)showComPanyAuthenticationWithType:(NSString *)type
{
    if (type.integerValue) {
        self.hidden = NO;
        self.image = [UIImage imageNamed:@"companyVVV"];
    }else{
        self.hidden = YES;
    }
}






@end
